//set main namespace
goog.provide('charlotte');


//get requirements
goog.require('lime.Director');
goog.require('lime.GlossyButton');
goog.require('lime.Layer');
goog.require('lime.Scene');
//goog.require('pong.Game');

// entrypoint
charlotte.start = function() {

	lime.scheduleManager.setDisplayRate(1000 / 60);

	var director = new lime.Director(document.body, 800, 450);
	var scene = new lime.Scene(),
	    layer = new lime.Layer();
		
		var txtTitle = "Charlotte";
		var lblTitle = new lime.Label().setText(txtTitle).setFontSize(35).setFontColor(255,255,255).setFill(50,0,0).
        setAlign('center').setPadding(10, 20).setShadow('#000',2,1,1);
		lblTitle.setPosition(150,100);
		layer.appendChild(lblTitle);
		
		var btnStart = new lime.GlossyButton('START').setColor('#111').setSize(100, 40).setPosition(150, 250);
		/*goog.events.listen(btn, 'click', function() {
				charlotte.newgame(1);
		});*/
		layer.appendChild(btnStart);

		

	scene.appendChild(layer);

	director.makeMobileWebAppCapable();
	// set current scene active
	director.replaceScene(scene);

};

/*pong.newgame = function(mode) {
	var scene = new lime.Scene(),
	layer = new lime.Layer();

	scene.appendChild(layer);

	var game = new pong.Game(mode);
	layer.appendChild(game);
	

	pong.director.replaceScene(scene);
};*/



//this is required for outside access after code is compiled in ADVANCED_COMPILATIONS mode
//goog.exportSymbol('pong.start', pong.start);
